home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / MORSETUP.ZIP / BORDER.C < prev    next >
C/C++ Source or Header  |  1992-08-10  |  842b  |  29 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include "morsetup.h"
  5.  
  6. /*-------------------------------------------------------------------------*/
  7. VOID InnerBorder(HDC hDC, RECT rect)
  8.     {
  9.     RECT rcWhite, rcGray;
  10.  
  11.     rcWhite = rcGray = rect;
  12.  
  13.     // draw gray upper border part
  14.     rcGray.right = rcGray.left+1;
  15.     FillRect(hDC, &rcGray, GetStockBrush(GRAY_BRUSH));
  16.     rcGray.right = rect.right;
  17.     rcGray.bottom = rcGray.top+1;
  18.     FillRect(hDC, &rcGray, GetStockBrush(GRAY_BRUSH));
  19.  
  20.     // draw white lower border part
  21.     rcWhite.left++;
  22.     rcWhite.top = rcWhite.bottom-1;
  23.     FillRect(hDC, &rcWhite, GetStockBrush(WHITE_BRUSH));
  24.     rcWhite.left = rcWhite.right-1;
  25.     rcWhite.top = rect.top;
  26.     rcWhite.bottom = rect.bottom;
  27.     FillRect(hDC, &rcWhite, GetStockBrush(WHITE_BRUSH));
  28.     }
  29.